From: Florian Müllner Date: Thu, 15 Jul 2021 16:48:34 +0000 (+0200) Subject: search: Exclude hidden results from keynav X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~574^2^2~209 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=20d99c69cb39eb8d0828aca1bfd75e31a626b443;p=gnome-shell.git search: Exclude hidden results from keynav Since commit 3fb02843, we no longer skip allocation for results that don't fit the width, and give them a 0x0 allocation instead. That has the unintended side effect of those children now being available to keynav. There are cases where we want 0-sized actors to be part of the focus chain (e.g. FocusTrap), but this isn't one of them, so explicitly exclude 0-sized children from keynav. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/4470 Part-of: --- diff --git a/js/ui/search.js b/js/ui/search.js index de13d6e01..7300b053e 100644 --- a/js/ui/search.js +++ b/js/ui/search.js @@ -429,6 +429,7 @@ var GridSearchResultsLayout = GObject.registerClass({ childBox.set_size(0, 0); child.allocate(childBox); + child.can_focus = childBox.get_area() > 0; childBox.x1 += childWidth; }